<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
    if(session.getAttribute("uid") == null){ //判断是否登录
        response.sendRedirect(request.getContextPath() + "/login.jsp");
    }
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 查看邮件</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="./public/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="./public/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="./public/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="./public/css/animate.css" rel="stylesheet">
    <link href="./public/css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-content mailbox-content">
                        <div class="file-manager">
                            <a class="btn btn-block btn-primary compose-mail" href="./MessageSend">写信</a>
                            <div class="space-25"></div>
                            <h5>文件夹</h5>
                            <ul class="folder-list m-b-md" style="padding: 0">
                                <li>
                                    <a href="./index.jsp"> <i class="fa fa-inbox "></i> 收件箱
                                    </a>
                                </li>
                                <li>
                                    <a href="./MessageSend"> <i class="fa fa-envelope-o"></i> 发信</a>
                                </li>
                                <li>
                                    <a href="./UserLogout"> <i class="fa fa-sign-out"></i> 退出</a>
                                </li>
                            </ul>
                            
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-9 animated fadeInRight">
                <div class="mail-box-header">
                    <div class="pull-right tooltip-demo">
                        <a href="./MessageSend?receiveUname=${message.getSendUname()}" class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top" title="回复"><i class="fa fa-reply"></i> 回复</a>
                        <a href="./MessageDelete?id=${message.getId()}" class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top" title="删除"><i class="fa fa-trash-o"></i> </a>
                    </div>
                    <h2>
                    查看邮件
                </h2>
                    <div class="mail-tools tooltip-demo m-t-md">


                        <h3>
                        <span class="font-noraml">发件人： </span>${message.getSendUname()}
                    </h3>
                        <h5>
                        <span class="pull-right font-noraml">时间： ${message.getPostTime()}</span>
                    </h5>
                    </div>
                </div>
                <div class="mail-box">


                    <div class="mail-body">
                        <p>
                            ${message.getNote()}
                        </p>

                        <p class="text-right">
                            来自： ${message.getSendUname()}
                        </p>
                    </div>
                    
                    
                    <div class="clearfix"></div>


                </div>
            </div>
        </div>
    </div>


    <!-- 全局js -->
    <script src="./public/js/jquery.min.js?v=2.1.4"></script>
    <script src="./public/js/bootstrap.min.js?v=3.3.6"></script>



    <!-- 自定义js -->
    <script src="./public/js/content.js?v=1.0.0"></script>


    <!-- iCheck -->
    <script src="./public/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>

    
    

</body>

</html>
